/**
 * Created by admin on 2017/4/20.
 */
(function () {
    var tool = {};
    tool.httpsUrl = "http://192.168.1.24:9999";


    tool.ajax = function (key, headera, data, success) {
        $.ajax({
            url: key,
            data: data,
            dataType: 'json',
            type: 'POST',
            jsonpCallback: "successCallback",
			jsonp: "callback",
            async: true,
            headers: headera,
            success: success,
            error:function (e) {
                console.log(e);
            }

        });
    };
    tool.header={
        public_key:'040CD66A84025B94CEAC3EC1B49C92D0',
        app_key:'ZQXQ-JSD',
        source:'1',
        client_id:'IMEI',
        channel:'tencent',
        app_version:'1.0.1',
        timestamp:'',
        signature:''
    };
    window.tool = tool;

})();